﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SystemCycleManager.aspx.cs"
    Theme="admin_skin" Inherits="Admin_SystemCycle_SystemCycleManager" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>系统时间周期定义</title>
    <link href="../../App_Themes/css/admin_css.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">        
        <table style="width: 650px">
            <tr>
                <td colspan="5">
                    年周期定义</td>
            </tr>
            <tr>
                <td colspan="5">
                    年&nbsp; 份 :<asp:DropDownList ID="drpYear1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropDownListSelectIndex"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList><asp:LinkButton ID="lbtnAddQuarterDate" runat="server" OnClick="lbtnAddQuarterDate_Click">添加年周期</asp:LinkButton></td>
            </tr>
            <tr>
                <td colspan="5" style="width: 650px">
                    <asp:GridView ID="gdvQuarter" runat="server" AutoGenerateColumns="False" DataKeyNames="Quarter_Id"
                        SkinID="gridviewSkin" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="Quarter_Id" HeaderText="年周期id" Visible="False" />
                            <asp:BoundField DataField="QuarterYear" HeaderText="年份" />
                            <asp:BoundField DataField="QuarterName" HeaderText="年周期名称" />
                            <asp:BoundField DataField="QuarterStartDay" HeaderText="年开始时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:BoundField DataField="QuarterEndDay" HeaderText="年结束时间" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:Button ID="btnQuarterDelete" runat="server" OnClick="btnQuarterDelete_Click"
                                        Text="删除" OnClientClick="return confirm('确认要删除吗？');" SkinID="buttonSkin" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="修改">
                                <ItemTemplate>
                                    <asp:Button ID="btnModifyQuarter" runat="server" OnClick="btnModifyQuarter_Click"
                                        SkinID="buttonSkin" Text="修改" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="5" style="width: 650px">
                    <hr />
                    </td>
            </tr>
        </table>
        <table style="width: 650px">
            <tr>
                <td colspan="2">
                    月周期定义</td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    年&nbsp; 份 :<asp:DropDownList ID="drpYear2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropDownListSelectIndex"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList><asp:LinkButton ID="lbtnAddMonthDate" runat="server" OnClick="lbtnAddMonthDate_Click">添加月周期</asp:LinkButton></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    年周期 :<asp:DropDownList ID="drpQuarter1" runat="server" OnSelectedIndexChanged="dropDownListSelectIndex"
                        AutoPostBack="True" SkinID="dropdownlistSkin">
                    </asp:DropDownList></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="width: 650px">
                    <asp:GridView ID="gdvMonth" runat="server" AutoGenerateColumns="False" DataKeyNames="Month_Id"
                        SkinID="gridviewSkin" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="Month_Id" HeaderText="月周期id" Visible="False" />
                            <asp:BoundField DataField="MonthYear" HeaderText="年份" />
                            <asp:BoundField DataField="QuarterName" HeaderText="年周期名称" />
                            <asp:BoundField DataField="MonthName" HeaderText="月周期名称" />
                            <asp:BoundField DataField="MonthStartDay" HeaderText="月周期起始" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:BoundField DataField="MonthEndDay" HeaderText="月周期结束" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:Button ID="btnMonthDelete" runat="server" OnClick="btnMonthDelete_Click" Text="删除" OnClientClick="return confirm('确认要删除吗？');" SkinID="buttonSkin" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="修改">
                                <ItemTemplate>
                                    <asp:Button ID="btnModifyMonth" runat="server" OnClick="btnModifyMonth_Click" SkinID="buttonSkin"
                                        Text="修改" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="width: 650px">
                    <hr />
                    </td>
            </tr>
        </table>
        <table style="width: 650px">
            <tr>
                <td colspan="2">
                    周周期定义</td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    年 &nbsp;份 :<asp:DropDownList ID="drpYear3" runat="server" AutoPostBack="True" OnSelectedIndexChanged="dropDownListSelectIndex"
                        SkinID="dropdownlistSkin">
                    </asp:DropDownList><asp:LinkButton ID="lbtnAddWeekDate" runat="server" OnClick="lbtnAddWeekDate_Click">添加周周期</asp:LinkButton></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    年周期 :<asp:DropDownList ID="drpQuarter2" runat="server" OnSelectedIndexChanged="dropDownListSelectIndex"
                        AutoPostBack="True" SkinID="dropdownlistSkin">
                    </asp:DropDownList></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    月周期 :<asp:DropDownList ID="drpMonth1" runat="server" OnSelectedIndexChanged="dropDownListSelectIndex"
                        AutoPostBack="True" SkinID="dropdownlistSkin">
                    </asp:DropDownList></td>
                <td>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="width: 650px">
                    <asp:GridView ID="gdvWeek" runat="server" AutoGenerateColumns="False" DataKeyNames="Week_Id"
                        SkinID="gridviewSkin" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="Week_Id" HeaderText="周周期id" Visible="False" />
                            <asp:BoundField DataField="WeekYear" HeaderText="年份" />
                            <asp:BoundField DataField="QuarterName" HeaderText="年周期名称" />
                            <asp:BoundField DataField="MonthName" HeaderText="月周期名称" />
                            <asp:BoundField DataField="WeekName" HeaderText="周周期名称" />
                            <asp:BoundField DataField="WeekStartDay" HeaderText="周起始" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:BoundField DataField="WeekEndDay" HeaderText="周结束" DataFormatString="{0:yyyy-MM-dd}" HtmlEncode="False" />
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:Button ID="btnWeekDelete" runat="server" OnClick="btnWeekDelete_Click" Text="删除" OnClientClick="return confirm('确认要删除吗？');" SkinID="buttonSkin" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="修改">
                                <ItemTemplate>
                                    <asp:Button ID="btnModifyWeek" runat="server" OnClick="btnModifyWeek_Click" Text="修改" SkinID="buttonSkin" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3" style="width: 650px">
                    <hr />
                    </td>
            </tr>
            
        </table>
    </form>
</body>
</html>
